package com.cos.emp.services;

import com.cos.emp.entity.Emp;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: COS
 * @time: 2022/9/30 14:18
 * @description:
 */
public interface EmpServices {
    List<Emp> getAll();

    Emp doLogin(String ename, String pwd);

    PageInfo<Emp> getEmpByPage(Map<String, String> emps);

    boolean delEmp(Integer eno);

    boolean checkName(String ename);

    boolean addEmp(Emp emp);

    Emp getEmpByEno(Integer eno);

    boolean updateEmp(Emp emp);
}
